package com.aaa.phone.controller.accountsafecontroller;

import com.aaa.phone.service.accountsafeservice.AccountSafeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description: 此Controller主要包括更改手机号
 * @Author: 陈阳
 * @CreateDate: 2018/12/19$ 13:39$
 */
@CrossOrigin
@Controller
@RequestMapping("/accountSafe")
public class AccountSafe {

    @Autowired
    private AccountSafeService service;

    /**
     * 修改用户手机号 表app_userlogin/app_userinfo
     */
    @RequestMapping("/updateTel")
    @ResponseBody
    public int updateTel(String agoTelephone, String nowTelephone) {
        return service.updateTelUserLogin(agoTelephone, nowTelephone);
    }
}
